import React from 'react';
import { Button, Carousel } from 'antd-mobile';
import Upvote from './Upvote.jsx'
import './healthitem.css'
class HealthItem extends React.Component {
    constructor(props) {
        super(props);         
        this.state = {      
            upvoted: false
        };   
    }
    // static propTypes = {
    //     dataSource: this.props.heatthArticle
    // };
    render() {
        return (
            <div className="health-article">
                <img className="health-article-img" />
                <div className="health-article-title">{this.props.healthArticle}</div>
                <Upvote />    
                <div style={{ clear: 'both' }}></div>                
            </div>
        )
    }
}

//导出组件
export default HealthItem;
